from .request_logging import setup_request_logging
from .error_handler import setup_error_handler
from .cors import setup_cors


def setup_middleware(app):
    """设置所有中间件"""
    setup_cors(app)
    setup_request_logging(app)
    setup_error_handler(app)